package top.tenebrous.termbor.rpc.consumer.nativeTest.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.tenebrous.termbor.rpc.consumer.nativeTest.service.ClientHelloService;

import javax.annotation.Resource;

/**
 * @program: jestic-rpc
 * @description:
 * @author: yazhang6
 * @create: 2024-05-10 17:19
 **/
@Slf4j
@RestController
@RequestMapping("/v1/pt/test/rpc")
public class TestController {

    @Resource
    private ClientHelloService clientHelloService;

    @GetMapping("/hello/{context}")
    public String searchDeptMap(@PathVariable(name = "context") String context) {
        return clientHelloService.notice(context);
    }
}
